package com.moon.game.constants;


/**
 * 错误常量表
 * 
 * @author Ranger
 *
 */
public class ErrorCode {
	public static int BASE_ERR = -0x00100;
	
    // 系统公共消息1~499
    public static int ERR_SYS = BASE_ERR - 1;// 系统异常!
    public static int ERR_PAR = BASE_ERR - 2; // 参数错误
    public static int ERR_PAGE_NOT_EXISTS = BASE_ERR - 3; // 页面不存在
    public static int ERR_NOT_EXISTS_CMD = BASE_ERR - 4; // cmd不存在
    public static int ERR_TIME_OUT = BASE_ERR - 5; // 系统超时,请稍候访问!
    public static int ERR_SERVER_BUSY = BASE_ERR - 6; // 你的动作太快了,可以慢一点来吗?
    public static int ERR_LOGIN_CHECK_FAIL = BASE_ERR - 7; // 登陆检验失败,请稍候重试!
    public static int ERR_LOAD_PLAYER_EXCEPTION = BASE_ERR - 8; // 加载用户数据异常,请联系管理员!
    public static int ERR_GET_ACCESS_TOKEN = BASE_ERR - 9; // 登录验证失败,获取权限失败!
    public static int ERR_GET_PERSON_FAIL = BASE_ERR - 10; // 获取个人信息失败,请稍候重试!
    public static int ERR_NO_QQ_LOGIN = BASE_ERR - 11; // 你尚未从QQ社区登陆无法继续进行,请先登陆!
    public static int ERR_INVITE_FRIEND_FAIL = BASE_ERR - 12; // 邀请社区好友失败,请重新登陆或稍候再试!
    public static int ERR_RECHARGE_HOME_FAIL = BASE_ERR - 13; // 请求充值失败,请重新登陆或稍候再试!
    public static int ERR_TODAY_FAIL = BASE_ERR - 14;//今天已经领取过
    public static int ERR_STOP_REGISTRATION = BASE_ERR - 15;//停止注册
    public static int ERR_REGISTERED_IN_BAD_FAITH = BASE_ERR - 16;//恶意注册玩家
    public static int ERR_BEYOND_MAX_LEVEL = BASE_ERR - 17;//超过最大等级
    public static int ERR_LACK_OF_EXP = BASE_ERR - 18;//不够经验升级
    public static int ERR_LOCATION = BASE_ERR - 19;//玩家位置错误
    public static int ERR_RESOURCE = BASE_ERR - 20;//资源库中找不到该道具
    public static int ERR_LACK_LEVEL = BASE_ERR - 21;//等级不够

    // 玩家、负重等
    public static int ERR_BASE_PLAYER = BASE_ERR - 100;
    public static int ERR_NO_PLAYER = ERR_BASE_PLAYER -1; // 玩家账号不存在
    public static int ERR_KICK = ERR_BASE_PLAYER - 2;// 该账号被封号
    public static int ERR_BOOKMARK = ERR_BASE_PLAYER - 3;// 书签错误
    public static int ERR_EXPIRY_BOOKMARK = ERR_BASE_PLAYER - 4; // 书签过期
    public static int ERR_PASSWD = ERR_BASE_PLAYER - 5;// 密码错误
    public static int ERR_NO_GOLD = ERR_BASE_PLAYER - 6; // 账号缺少金币
    public static int ERR_NO_MONEY = ERR_BASE_PLAYER - 7; // 账号缺少碎银
    public static int ERR_ROOM_FULL = ERR_BASE_PLAYER - 8;// 负重满
    public static int ERR_PLAYER_LEVEL = ERR_BASE_PLAYER - 9;// 等级不够,无法{0}!
    public static int ERR_NO_PLAYER_NAME = ERR_BASE_PLAYER - 10; // 用户名不能为空
    public static int ERR_REG_FAIL = ERR_BASE_PLAYER - 11; // 注册账号失败
    public static int ERR_GOLD_MONEY_ERROR = ERR_BASE_PLAYER - 12; // 扣除金钱不能为负数
    public static int ERR_MAX_ROMM = ERR_BASE_PLAYER - 13; // 已经是当前允许的最大负重,不能再扩容了
    public static int ERR_ROOM = ERR_BASE_PLAYER - 14;//背包已满
    public static int ERR_BURDEN = ERR_BASE_PLAYER - 15;//负重已满
    public static int ERR_BUY_ITEM = ERR_BASE_PLAYER - 16;//资源中没有找到要购买的道具
    public static int ERR_PWD = ERR_BASE_PLAYER - 17; // 密码出错.
    public static int ERR_OLDPWD_EMPTY = ERR_BASE_PLAYER - 18; // 旧密码不能为空.
    public static int ERR_NEWPWD_EMPTY = ERR_BASE_PLAYER - 19; // 新密码不能为空.
    public static int ERR_NEWPWD2_EMPTY = ERR_BASE_PLAYER - 20; // 确定新密码不能为空.
    public static int ERR_COMPARE_PWD_EMPTY = ERR_BASE_PLAYER - 21; // 两次输入密码不相同.
    public static int ERR_PWD_LENGTH_EMPTY = ERR_BASE_PLAYER - 22; // 长度
    public static int ERR_PWD_REGEX_EMPTY = ERR_BASE_PLAYER - 23; // 匹配出错.
    public static int ERR_VIEW_OFFLINE = ERR_BASE_PLAYER - 24; // 访问离线玩家.
    

    // 聊天
    public static int ERR_CHAT_BASE = BASE_ERR - 200; // 你已被禁言,解禁时间:
    public static int ERR_CHAT_GAG = ERR_CHAT_BASE - 1; // 你已被禁言,解禁时间:
    public static int ERR_NO_XLB = ERR_CHAT_BASE - 2; // 缺少小喇叭
    public static int ERR_MSG_EMPTY = ERR_CHAT_BASE - 3; //消息不能为空
    public static int ERR_MSG_CONTENT_SIZE = ERR_CHAT_BASE - 4; //消息长度30个字以内
    
    //道具
    public static int ERR_ITEM_BASE = BASE_ERR - 300;
    public static int ERR_NO_THE_ITEM = ERR_ITEM_BASE - 1;//没有该道具资源
    public static int ERR_LACK_THE_ITEM = ERR_ITEM_BASE - 2;//道具数量不够
    public static int ERR_HAVE_NO_THE_ITEM = ERR_ITEM_BASE - 3;//玩家没有该道具
    public static int ERR_BEYOND_MAX_NUM = ERR_ITEM_BASE - 4;//超过了单次使用道具的最大数量
    public static int ERR_DEL_USING = ERR_ITEM_BASE - 5;//要删除的道具正在被使用
    
    //孵化塔
    public static int ERR_LAIR_BASE = BASE_ERR - 400;
    public static int ERR_MAX_TOWER = ERR_LAIR_BASE - 1;//孵化塔数量超过最大值
    public static int ERR_NO_TOWER = ERR_LAIR_BASE - 2;//没有孵化塔
    public static int ERR_MAX_PET_YARD_CAPACITY = ERR_LAIR_BASE - 3;//宠物数量超过最大值
    public static int ERR_LAIR_ENDURE = ERR_LAIR_BASE - 4;//孵化塔持久不够
    public static int ERR_NO_PET = ERR_LAIR_BASE - 5;//没有次宠物
    public static int ERR_RENT_TIMES = ERR_LAIR_BASE - 6;//出租孵化塔的经验不够【要孵化成功10次】
    public static int ERR_RENT_ANIMAL_LEFT_TIME = ERR_LAIR_BASE - 7;//出租孵化塔时塔内珍兽剩余驻足时间不足12个小时
    
    //任务
    public static int ERR_MISSION_BASE = BASE_ERR - 500;
    public static int ERR_FINISHED_ALL_MISSION = ERR_MISSION_BASE - 1;//已经完成了所有的任务
    public static int ERR_NO_MISSION = ERR_MISSION_BASE - 2;//资源库中找不到指定的任务
    public static int ERR_CANNOT_SUBMIT = ERR_MISSION_BASE - 3;//条件不足不能提交任务
    public static int ERR_NOT_ASSIGN_MISSION = ERR_MISSION_BASE - 4;//没有分派任务
    public static int ERR_HAS_NO_THE_MISSION = ERR_MISSION_BASE - 5;//已经没有指定任务了
    public static int ERR_SUBMITTED_THE_MISSION = ERR_MISSION_BASE - 6;//任务已经提交过了
    
    
    //礼包
    public static int ERR_GIFT_BASE = BASE_ERR - 600;//礼包基础错误
    public static int ERR_NO_GIFT = ERR_GIFT_BASE - 1;//没有礼包
    public static int ERR_NO_THE_GIFT = ERR_GIFT_BASE - 2;//没有指定的礼包
}
